﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AlumnoEjemplos.Ocio.Utils
{
    public class RepositorioObjetos
    {
        private static RepositorioObjetos instance;
        private Dictionary<String, Object> map = new Dictionary<string, object>();


        public static RepositorioObjetos getInstance()
        {
            if (instance == null)
            {
                instance = new RepositorioObjetos();
            }
            return instance;
        }


        

        public void put(String key, Object value)
        {
            map.Add(key, value);
        }

        public Object get(String key)
        {
            return map[key];
        }
    }
}
